<!DOCTYPE html>
<html>
<head>
</head>
<body>
	<!--Con//Start-->
	<div class="mar-st-a30">
		<form id="dataForm" name="dataForm" method="post" action="#"
			enctype="multipart/form-data">
			<div>
				<input name="id" class="input-common" type="hidden" id="id"
					value="{{wversion.id}}" /> <input name="boundle"
					class="input-common" type="hidden" id="id"
					value="{{wversion.boundle}}" />
			</div>
			<div class="mar-st-a30">
				<table width="90%" border="0" align="center" cellpadding="0"
					cellspacing="0" class="tab-td-pa">
					<tr>
						<td width="30%" align="right" for="focusedInput">模块名称：</td>
						<td class="bd_sr"><input class="form-control" name="name"
							type="text" value="{{widgetVO.name}}" readonly="readonly"
							id="name" required></td>
					</tr>
					<tr>
						<td width="30%" align="right" for="focusedInput">版本号：</td>
						<td class="bd_sr"><input class="form-control" type="text"
							readonly="readonly" name="version" value="{{wversion.version}}"
							id="version" /></td>
					</tr>
					<tr>
						<td width="30%" align="right" for="focusedInput">构建号：</td>
						<td class="bd_sr"><input class="form-control" type="text"
							readonly="readonly" name="build" value="{{wversion.build}}"
							id="build" /></td>
					</tr>
					<tr>
						<td align="right" class="control-group">版本简介：</td>
						<td colspan="3" class="bd_sr"><textarea id="release_not"
								class="form-control" name="release_not" cols="" rows="">{{wversion.release_not}}</textarea></td>
					</tr>
				</table>
			</div>
		</form>
	</div>
</body>
</html>
<script type="text/javascript">
	var popover = function(inputId, content) {
		var options = {
			placement : "bottom",
			content : content
		};
		$('#' + inputId).popover(options);
		$('#' + inputId).popover('show');
	}

	function formSubmit() {
		var data = $('#dataForm').serialize();
		$.ajax({
			async : true,
			type : "POST",
			url : "{{ctx}}/mam/widgetVersion/update",
			data : data,
			dataType : 'json',
			success : function(result, textStatus) {
				if (result.result == "success") {
					bootbox.alert("更新成功！", function() {
						window.location.reload();
					});
				} else {
					bootbox.alert("更新失败，请稍等再试");
				}
			},
			error : function(result, status, e) {
				bootbox.alert("系统繁忙，请稍后再试！");
			}
		});
	}
</script>

